package com.winter.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.winter.model.vo.request.CompanyItliteBean;
import com.winter.model.IeliteRelainfo;
import com.winter.model.UserCompanyBean;

import java.util.List;

@Repository
public interface IeliteRelainfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(IeliteRelainfo record);

    int insertSelective(IeliteRelainfo record);

    IeliteRelainfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(IeliteRelainfo record);

    int updateByPrimaryKey(IeliteRelainfo record);

    IeliteRelainfo getRelainfoBean(@Param("userId") String userId, @Param("relaId") String relaId, @Param("relaType") String relaType);

    List<IeliteRelainfo> getList(@Param("userNo") String userNo, @Param("relaType") String relaType);

    int getIeliteRela(@Param("custId") Long custId);

    int getIeliteIsColln(@Param("custId") Long custId, @Param("createUser") String createUser);
    
    List<CompanyItliteBean> findIeliteList(@Param("userNo") String userNo, @Param("type") String type);
}